package com.zretc.entity;

/**
 * 商品信息表
 * 马福又
 */
public class Product {
    private Integer productId;//编号
    private String productName;//名称
    private Integer productInventory;//库存
    private Integer productPrice;//价格
    private String productPicture;//商品图片
    private String productTime;//上架时间
    private Integer productStatus;//商品状态
    private String productIntroduce;//商品介绍
    private Integer sellerId;//卖家编号
    private Seller seller;//卖家对象
    private Integer typeId;//类型编号
    private Type type;//类型对象

    public Product() {
    }

    public Product( String productName, Integer productInventory,
                   Integer productPrice, String productPicture, String productTime,
                   Integer productStatus, String productIntroduce, Integer sellerId,
                   Seller seller, Integer typeId, Type type) {
        this.productName = productName;
        this.productInventory = productInventory;
        this.productPrice = productPrice;
        this.productPicture = productPicture;
        this.productTime = productTime;
        this.productStatus = productStatus;
        this.productIntroduce = productIntroduce;
        this.sellerId = sellerId;
        this.seller = seller;
        this.typeId = typeId;
        this.type = type;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productId=" + productId +
                ", productName='" + productName + '\'' +
                ", productInventory=" + productInventory +
                ", productPrice=" + productPrice +
                ", productPicture='" + productPicture + '\'' +
                ", productTime='" + productTime + '\'' +
                ", productStatus=" + productStatus +
                ", productIntroduce='" + productIntroduce + '\'' +
                ", sellerId=" + sellerId +
                ", seller=" + seller +
                ", typeId=" + typeId +
                ", type=" + type +
                '}';
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductInventory() {
        return productInventory;
    }

    public void setProductInventory(Integer productInventory) {
        this.productInventory = productInventory;
    }

    public Integer getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Integer productPrice) {
        this.productPrice = productPrice;
    }

    public String getProductPicture() {
        return productPicture;
    }

    public void setProductPicture(String productPicture) {
        this.productPicture = productPicture;
    }

    public String getProductTime() {
        return productTime;
    }

    public void setProductTime(String productTime) {
        this.productTime = productTime;
    }

    public Integer getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(Integer productStatus) {
        this.productStatus = productStatus;
    }

    public String getProductIntroduce() {
        return productIntroduce;
    }

    public void setProductIntroduce(String productIntroduce) {
        this.productIntroduce = productIntroduce;
    }

    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    public Seller getSeller() {
        return seller;
    }

    public void setSeller(Seller seller) {
        this.seller = seller;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }
}
